import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity({ name: 'dictionary_item' })
export class DictionaryItem extends BaseEntity {

    @PrimaryGeneratedColumn({ name: 'item_id' })
    public itemId: number;

    @Column('int', { name: 'dictionary_id' })
    public dictionaryId: number;

    @Column('varchar', { length: 255 })
    public code: string;

    @Column('text')
    public value: string;

    @Column('varchar', { length: 255 })
    public comment: string;

    @Column('int')
    public enabled: number;
}
